<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<link rel="stylesheet" href="{{ asset('./admin/css/ch-ui.admin.css') }}">
	<link rel="stylesheet" href="{{ asset('admin/font/css/font-awesome.min.css') }}">
</head>
<body style="background:#F3F3F4;">
	<div class="login_box">
		<h1>Company</h1>
		<h2>欢迎使用后台管理平台</h2>
		<div class="form">
			@if(session('msg'))
				<p style="color:red">{{ session('msg') }}</p>
			@endif
			<form action="" method="post">
				{{ csrf_field() }}
				<ul>
					<li>
					<input type="text" name="username" class="text"/>
						<span><i class="fa fa-user"></i></span>
					</li>
					<li>
						<input type="password" name="password" class="text"/>
						<span><i class="fa fa-lock"></i></span>
					</li>
					<li>
						<input type="text" class="code" name="code"/>
						<span><i class="fa fa-check-square-o"></i></span>
						<img id="captcha" onclick="javascript:re_captcha();" src="{{ url('admin/captcha') }}" alt="">
					</li>
					<li>
						<input type="submit" value="立即登陆"/>
					</li>
				</ul>
			</form>
			<p><a href="#">返回首页</a> &copy; 2017 Powered by <a href="{{asset('/')}}" target="_blank">http://www.tianheng.net</a></p>
		</div>
	</div>
	<script>
		function re_captcha() {
		    $url = "{{ url('admin/captcha') }}";
		    $url = $url + "?" + Math.random();
		    document.getElementById('captcha').src = $url;
		}
	</script>
</body>
</html>